package com.example.restaurant.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 菜品表
 * </p>
 *
 * @author x
 * @since 2022-09-29
 */
@ApiModel(value = "Dish对象", description = "菜品表")
public class Dish implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty("关联菜类id")
    private Integer dishTypeId;
    @ApiModelProperty("菜品名")
    private String dishName;
    @ApiModelProperty("状态 下架 TAKE_DOWN|上架 USE | 售罄 SOLD_OUT")
    private String status;

    @ApiModelProperty("价格")
    private Double dishPrice;

    @ApiModelProperty("单位")
    private String unit;

    @ApiModelProperty("菜品图片")
    private String dishImg;

    @ApiModelProperty("菜品描述")
    private String dishDescribe;

    @ApiModelProperty("已售数量")
    private Integer quantity;

    @ApiModelProperty("库存")
    private Integer stock;

    @ApiModelProperty("门店id")
    private Integer storeId;

    public Integer getStoreId() {
        return storeId;
    }

    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getDishTypeId() {
        return dishTypeId;
    }

    public void setDishTypeId(Integer dishTypeId) {
        this.dishTypeId = dishTypeId;
    }

    public String getDishName() {
        return dishName;
    }

    public void setDishName(String dishName) {
        this.dishName = dishName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Double getDishPrice() {
        return dishPrice;
    }

    public void setDishPrice(Double dishPrice) {
        this.dishPrice = dishPrice;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getDishImg() {
        return dishImg;
    }

    public void setDishImg(String dishImg) {
        this.dishImg = dishImg;
    }

    public String getDishDescribe() {
        return dishDescribe;
    }

    public void setDishDescribe(String dishDescribe) {
        this.dishDescribe = dishDescribe;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    @Override
    public String toString() {
        return "Dish{" +
        "id = " + id +
        ", dishTypeId = " + dishTypeId +
        ", dishName = " + dishName +
        ", status = " + status +
        ", price = " + dishPrice +
        ", unit = " + unit +
        ", picture = " + dishImg +
        ", dishDescribe = " + dishDescribe +
        ", quantity = " + quantity +
        ", stock = " + stock +
        "}";
    }
}
